<script>
function add(x,y) {
  alert(x+y);
}
</script>
<body onload="add(2,2);">
</body>
